package main

import "fmt"

func main() {
	s := []int{1, 2, 3} // len=3, cap=3
	a := s
	s[0] = 888
	s = append(s, 4)
	printSlice(s)
	printSlice(a)
}

func printSlice(x []int) {
	fmt.Printf("长度=%d 容量=%d 元素=%v\n", len(x), cap(x), x)
}
